// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import com.nokia.symbian 1.1

Rectangle {
    width: parent.width
    //color:"#EACF4B"
    height: parent.height / 10
    gradient: Gradient {
        GradientStop {
            position: 0
            color: "#ebf1f6"
        }

        GradientStop {
            position: 1
            color: "#19a825"
        }
    }

    anchors.top: topBar.bottom

    ToolButton {
        anchors.left: parent.left
        anchors.top: parent.top
        flat: true
        //iconSource: "toolbar-search"
        iconSource: "icon/search.png"
        //onClicked: pageStack.depth <= 1 ? Qt.quit() : pageStack.pop()
    }


    TextField {
        id:searchBar

        anchors {
            horizontalCenter: parent.horizontalCenter
            verticalCenter: parent.verticalCenter
            bottomMargin: 58
        }
        width: parent.width - 60
        height: 40
        anchors.horizontalCenterOffset: 24
        placeholderText: "Chercher un médicament..."
        onTextChanged: medicsmodel.load(searchBar.text)
    }


    Rectangle {
        color: "#4eea4b"
        width: parent.width
        height: 1
        anchors.bottom: parent.bottom
    }
}
